package com.shd.edanpei.ui.view;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.shd.edanpei.R;
import com.shd.edanpei.bean.OrderDetailsModel;
import com.shd.edanpei.common.Constant;
import com.shd.edanpei.customer.activity.ListActivity;
import com.shd.edanpei.ui.activity.FileListActivity;
import com.shd.edanpei.util.GsonUtil;

/**
 * Created by mc on 2018/9/20.
 * 我的订单 积分
 */

public class MeIntegralView extends LinearLayout {

    private OrderDetailsModel model;

    TextView tvIntegral;

    public MeIntegralView(Context context, OrderDetailsModel model) {
        super(context);
        this.model = model;
        initView();
    }


    private void initView() {
        LayoutInflater.from(getContext()).inflate(R.layout.order_integral_info, this);
        tvIntegral = findViewById(R.id.tv_integral);
        tvIntegral.setText(model.getBaseInfo().getPoints()+"积分");

    }

}
